<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>进度查询</title>

    <!-- styles here -->
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../css/Public_CSS.css">
    <link rel="stylesheet" href="../css/mui.min.css">
    <link rel="stylesheet" href="../css/style.css">
</head>

<body>
    <div class="progress-page" id="app">
        <div class="banner-back">
            <span onclick="window.history.back()">
                <i>返回</i>
            </span>进度查询
        </div>
        <div class="bank-wrap">
            <div class="bank-link" v-for="bank in banks">
                <a :href="bank.queryBankUrl">
                    <img :src="bank.bankIcon" :alt="bank.bankName">
                    <span v-html="bank.bankName"></span>
                    <i></i>
                </a>
            </div>
        </div>
    </div>

    <!-- scripts here -->
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../js/jquery.min.js" type="text/javascript"></script>
    <script src="../js/vue.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../public/js/loan/mui.min.js"></script>
    <script>
        $(function () {
            vm.loadBank();
        });
        var vm = new Vue({
            el: "#app",
            data: {
                banks: []
            },
            methods: {
                loadBank: function () {
                    $.ajax({
                        url: '/thmlfApi/avs/yb/queryBankList?appId=' + appId(),
                        dataType: "JSON",
                        success: function (r) {
                            if (r.code == 200) {
                                vm.banks = r.result;
                            } else
                                alert(r.message);
                        },
                        error: function (e) {
                            console.log("request error", e);
                            mui.alert("请求失败，请稍后重试");
                        }
                    });
                }
            }
        });
    </script>
</body>

</html>